<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Grid Test</title>
<!-- css -->
<link id="fd_theme" href="../../styles/theme/aristo/theme.css" rel="stylesheet" type="text/css" />
<link href="../../styles/primeui-1.1-min.css" rel="stylesheet" type="text/css" />
<!-- lib -->
<script type="text/javascript" src="../../src/FDLib/FDLib.js"></script>
<script type="text/javascript" src="../../src/JsMap.js"></script>
<!-- app js -->
<script type="text/javascript" src="../theme.js"></script>
<script type="text/javascript" src="data.js"></script>
<style type="text/css">
body{font-size: 12px}
</style>
</head>
<body>
<div id="grid"></div>

<script type="text/javascript">
FDLib.setDir('../../src/');
FDLib.openDebug();

FDLib.loadJs('FDGrid',function(){
	var addr = '联系地址address 联系地址address 联系地址address ';
	gridData.push({id:11,"username":'Jim',"addr":addr,"birthday":"1978-12-30",age:22});
	
	new FDGrid({
		domId:'grid'
		,data:gridData
		,showPaging:false
		,showSetting:false
		,pageSize:0
		,columns:[
			{text:"姓名",name:"username"}
			,{text:"联系地址",name:"addr"}
			,{text:"联系地址(不换行)",name:"addr",textOneLine:true}
			,{text:"出生日期",name:"birthday"}
			,{text:"年龄",name:"age"}
		]
	});
});


function update(rowData,rowIndex) {
	alert(rowIndex + " update: " + rowData.username);
}
function del(rowData,rowIndex) {
	alert(rowIndex + " del: " + rowData.username);
}
</script>
</body>
</html>